#ifndef ENGINE_H
#define ENGINE_H
#include "main.h"
#include <fstream>

namespace jfw
{
    class Engine
    {
        public:
            Engine();
            bool LoadSettings(std::string m_sFilename,std::string m_sSeparator);
            bool Open();
            bool Open(int iWidth, int iHeight, int iBits, const char* sTitle);
            void Update(float m_fTime);
            void Draw();
            void Close();
            virtual ~Engine();

            sf::RenderWindow App;
        protected:
        private:
            sf::Input Input;
            sf::Event Event;
            sf::Clock Clock;

            float fElapsedTime;
            std::map<std::string,std::string> Settings;
    };
}
extern jfw::Engine* pEngine;
#endif // ENGINE_H
